package com.gxuwz.zhangjiahui.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxuwz.zhangjiahui.entity.Conclusion;
import com.gxuwz.zhangjiahui.entity.Leader;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhangjiahui
 * @since 2021-06-20
 */
@Mapper
@Repository
public interface ConclusionMapper extends BaseMapper<Conclusion> {

    // 根据 id 查询对应信息
    Conclusion findConclusionById(Conclusion conclusion);

    // 查询全部信息
    List<Conclusion> findConclusionAll();

    //自定义sql 分页
    IPage<Conclusion> selectConclusionPage(Page<Conclusion> page, @Param(Constants.WRAPPER) Wrapper<Conclusion> wrapper);

    // 添加信息
    void addConclusion(Conclusion conclusion);

    // 修改信息
    void updateConclusionById(Conclusion conclusion);

    // 删除信息
    void deleteConclusionById(Conclusion conclusion);

}
